package service.cfg;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

/**
 * Created by asus on 2019/1/9.
 */
@Service
public class GoodsCfg {

    @Value("#{config['server.goods.url']}")
    private String path;


    public String getGoodsInfo(Long goodsId) {
        return String.format("%s/%s", path,goodsId );
    }
}
